//gcc --share share.c -o share.dll
int indexof(char* src, char* str){
	char t = 'a';
	int i = -1, m = 0;
	if(str[m]=='\0') return 0;
	while(i++, t!='\0'){
		if(str[m]!='\0'){
			if(str[m] == src[i]) m++;
			else if(m!=0) m = 0,i--;
		}else{
			return m>0 ? i-m : -1;
		}
		t=src[i+1];
	}
	return -1;
}
